package cn.geminis.devops.jenkins;

def build() {
    nodejs(nodeJSInstallationName: 'pnpm', configId: 'npmrc') {
        sh 'pnpm install'
        sh 'pnpm build'
    }
}

def install() {
}

def publish() {
    nodejs(nodeJSInstallationName: 'pnpm', configId: 'npmrc') {
        sh 'pnpm release --registry ' + env.REPOSITORY_URL_NPM
    }
}

def getBuildPath() {
    return 'dist';
}